let s = "5F3Z-2e-9-w";
let z = s.match(/\[A-Z][0-9]+\g/);
console.log(z);